import http from '@/utils/request'

const apiBefore = 'web/snapshot'

export const snapshots = {
  printscreen: params => {
    return http.post(`${apiBefore}/snapshot/screenshot-mq`, params)
  },
  insert: params => {
    return http.post(`${apiBefore}/snapshot/insert`, params)
  },
  list: params => {
    return http.get(`${apiBefore}/snapshot/list`, { params })
  },
  exportPdf: params => {
    return http.get(`${apiBefore}/snapshot/pdfList`, { params })
  },
  downloadPdfFile: params => {
    return http.get(`${apiBefore}/snapshot/pdfFile`, { params })
  },
  leadingOut: params => {
    return http.post(`${apiBefore}/snapshot/leadingOut`, params)
  }
}
